package com.framework.service;


import com.baomidou.mybatisplus.service.IService;
import com.framework.entity.tran.AliPayerAgent;

/**
 * @author wq
 */
public interface AliPayerAgentService extends IService<AliPayerAgent> {

    /**
     *根据token获取支付宝账号信息
     * @param token
     * @return
     */
    AliPayerAgent queryAliAccount(String token);

    /**
     * 绑定支付账号
     * @param token
     * @param name
     * @param aliAccount
     */
    void bindAliAccount(String token, String name, String aliAccount);

    /**
     * 修改个人支付宝账号
     * @param token
     * @param name
     * @param aliAccount
     */
    void updateAliAccount(String token, String name, String aliAccount);

    /**
     * 添加
     * @param aliPayerAgent
     */
    void insertAliAccount(AliPayerAgent aliPayerAgent);
}
